<?php
$this->breadcrumbs = array(
    'Email settings'
);
?>
<div class="box">
    <header>
        <div class="icons"><i class="icon-wrench"></i></div>
        <h5>Email settings</h5>
    </header>
    <div class="body">
        <form method="post">
            <div class="control-group">
                <label class="control-label">Using SMTP</label>
                <div class="controls">
                    <label class="radio">
                        <input type="radio" name="smtp" value="1" <?php if (isset($settings['smtp']) && $settings['smtp'] == 1) echo 'checked' ?> />
                        <label>Yes</label>
                    </label>

                    <label class="radio">
                        <input type="radio" name="smtp" value="0" <?php if (isset($settings['smtp']) && $settings['smtp'] == 0) echo 'checked' ?> />
                        <label>No</label>
                    </label>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">SMTP Host</label>
                <div class="controls">
                    <input type="text" name="smtp_host" value="<?php echo isset($settings['smtp_host']) ? $settings['smtp_host'] : '' ?>" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">SMTP Port</label>
                <div class="controls">
                    <input type="text" name="smtp_port" value="<?php echo isset($settings['smtp_port']) ? $settings['smtp_port'] : '' ?>" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">SMTP Mail Account</label>
                <div class="controls">
                    <input type="text" name="smtp_account" value="<?php echo isset($settings['smtp_account']) ? $settings['smtp_account'] : '' ?>" />
                </div>
            </div>

            <div class="control-group">
                <label class="control-label">SMTP Mail Password</label>
                <div class="controls">
                    <input type="password" name="smtp_password" value="<?php echo isset($settings['smtp_password']) ? $settings['smtp_password'] : '' ?>" />
                </div>
            </div>

            <div class="form-actions">
                <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'label' => 'Submit')); ?>
            </div>
        </form>
    </div>
</div>